package com.cskaoyan.bean.bo.wjjBO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author wjj
 * @date 2022-12-28 22:24
 * @describe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PromotionAdUpdateBO {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    @NotEmpty
    @Length(max = 30)
    private String content;

    private Boolean enabled;

    private Integer id;

    @NotEmpty
    @Length(min = 1)
    private String link;

    @NotEmpty
    @Length(min = 1,max = 10)
    private String name;

    private Byte position;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String url;


}
